//默认得到的是一个对象
var fooExports = require('./foo')
// console.log(foo)
//ReferenceError: foo is not defined

console.log(fooExports.add(1,2))
console.log(fooExports.str)